import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LoginController } from './user/controllers/login.controller';
import { UserEntity } from './user/entities/user.entity';
import { LoginService } from './user/services/login.service';
import { UserService } from './user/services/user.service';
import { UserController } from './user/controllers/user.controller';
import { UserTokenEntity } from './user/entities/user.token.entity';

@Module({
  imports: [TypeOrmModule.forFeature([UserEntity, UserTokenEntity])],
  controllers: [LoginController, UserController],
  providers: [LoginService, UserService],
  exports: [UserService],
})
export class SystemModule {}
